package com.rose.doorto.footbathdoor.enums;

/**
 * 订单常量信息
 * @Author 李庆超
 * @email 1481791489@qq.com
 * @Package：com.rose.doorto.footbathdoor.enums
 * @Project：door-to-door
 * @name：OrderMqConstant
 * @date 2024/08/13 2024/8/13:9:37:
 */
public class OrderMqConstant {

    // 消息队列，交换机和队列
    public static final String ORDER_DOOR_EVENT_EXCHANGE = "doorExchange";
    public static final String ORDER_DOOR_CREATE_ROUTING_KEY = "helloDoor";
    public static final String ORDER_EVENT_EXCHANGE = "order-event-exchange";
    public static final String ORDER_DELAY_ORDER_QUEUE = "order.delay.order.queue";            //延迟队列
    public static final String ORDER_RELEASE_ORDER_QUEUE = "order.release.order.queue";
    public static final String ORDER_RELEASE_COUPON_QUEUE = "order.release.coupon.queue";
    public static final String ORDER_RELEASE_ORDER_ROUTING_KEY = "order.release.order.#";
    public static final String ORDER_RELEASE_COUPON_ROUTING_KEY = "order.release.coupon.#";
    public static final String ORDER_RELEASE_STOCK_ROUTING_KEY = "order.release.stock.#";
    public static final String ORDER_CREATE_ROUTING_KEY = "order.create.#";
    public static final String DEAD_LETTER_EXCHANGE = "order-event-exchange";
    public static final String ORDER_DEAD_LETTER_ROUTING_KEY = "order.release.order";
    public static final Integer DEAD_LETTER_TTL = 2 * 60 * 1000; // 单位是ms
    public static final String ORDER_SECKILL_DEAL_QUEUE = "order.seckill.deal.queue";
    public static final String ORDER_SECKILL_DEAL_QUEUE_ROUTING_KEY = "order.seckill.deal.#";
}
